import time
from time import sleep

from base.base import Base



class select_up(Base):
    # 添加用户支付配置
    def pay_product_manage_add(self,account_no,account_no2,account_no3,account_no4,account_no5):
        self.switch_node("user_payment_configuration")
        self.click('payment_manage')
        self.logger.info('点击支付管理')
        self.click('user_payment_configuration')
        self.logger.info('用户支付配置')
        self.send_keys("user_code",account_no)
        self.logger.info('输入用户编号')
        self.send_keys("user_name",account_no2)
        self.logger.info('输入用户名称')
        self.send_keys('product_code',account_no3)
        self.logger.info('输入支付产品编号')
        self.send_keys('product_name2',account_no4)
        self.logger.info('输入支付产品名称')
        self.send_keys('risk_pre_deposit_period',account_no5)
        self.logger.info('输入风险预存期')
        self.click('submit')
        self.logger.info('点击提交')
